package com.ogms.dge.container.modules.data.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.ogms.dge.container.common.utils.PageUtils;
import com.ogms.dge.container.modules.data.entity.ServiceEntity;

import java.util.List;
import java.util.Map;

/**
 * 数据服务
 *
 * @author Lingkai Shi
 * @email lingkai.shi@nnu.edu.cn
 * @date 2024-09-23 15:10:30
 */
public interface ServiceService extends IService<ServiceEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void delBySrcUuid(String srcUuid);

    void delBySrcId(Long srcId);

    boolean saveBatch(String srcUuid, Long userId, List<Map<String, Object>> instances) throws JsonProcessingException;

    String getBasePath(String serviceUuid);
}

